import { registerAs } from "@nestjs/config";

export default registerAs("app", () => ({
	port: parseInt(process.env.PORT, 10) || 3000,
	baseUrl: process.env.BASE_URL || "http://localhost:3000",
	env: process.env.NODE_ENV || "development",
	jwtSecret: process.env.JWT_SECRET || "your-secret-key",
	jwtExpiresIn: parseInt(process.env.JWT_EXPIRES_IN, 10) || 86400,
}));
